package com.supermap.data.modal;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * 报表指标信息（关联报表）
 * TUser entity. @sun'f
 */
@Entity
@Table(name = "T_FORM_INDEX")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
public class TFormIndex {

    /**
     * 主键
     */
    private String id;
    /**
     * 所属报表主键
     */
    private String form_id;
    /**
     * 指标名称
     */
    private String index_code;
    /**
     * 指标名称
     */
    private String index_name;
    /**
     * 指标类型
     */
    private int index_type;
    /**
     * 指标长度
     */
    private int index_length;
    /**
     * 指标状态
     */
    private int status;
    /**
     * 排序码
     */
    private int orderby;
    /**
     * 指标单位
     */
    private String unit;
    /**
     * 上级指标代码
     */
    private String parcode;
    /**
     * 备注
     */
    private String memo;


    public TFormIndex() {
    }

    public TFormIndex(String id, String form_id, String index_code, String index_name, int index_type, int index_length, int status, int orderby, String unit, String parcode, String memo) {
        this.id = id;
        this.form_id = form_id;
        this.index_code = index_code;
        this.index_name = index_name;
        this.index_type = index_type;
        this.index_length = index_length;
        this.status = status;
        this.orderby = orderby;
        this.unit = unit;
        this.parcode = parcode;
        this.memo = memo;
    }

    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name = "ID")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "FORM_ID")
    public String getForm_id() {
        return form_id;
    }

    public void setForm_id(String form_id) {
        this.form_id = form_id;
    }

    @Column(name = "INDEX_CODE")
    public String getIndex_code() {
        return index_code;
    }

    public void setIndex_code(String index_code) {
        this.index_code = index_code;
    }

    @Column(name = "INDEX_NAME")
    public String getIndex_name() {
        return index_name;
    }

    public void setIndex_name(String index_name) {
        this.index_name = index_name;
    }

    @Column(name = "INDEX_TYPE")
    public int getIndex_type() {
        return index_type;
    }

    public void setIndex_type(int index_type) {
        this.index_type = index_type;
    }

    @Column(name = "INDEX_LENGTH")
    public int getIndex_length() {
        return index_length;
    }

    public void setIndex_length(int index_length) {
        this.index_length = index_length;
    }

    @Column(name = "STATUS")
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Column(name = "ORDERBY")
    public int getOrderby() {
        return orderby;
    }

    public void setOrderby(int orderby) {
        this.orderby = orderby;
    }

    @Column(name = "UNIT")
    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    @Column(name = "PARCODE")
    public String getParcode() {
        return parcode;
    }

    public void setParcode(String parcode) {
        this.parcode = parcode;
    }

    @Column(name = "MEMO")
    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }
}
